#include <arduino.h>
 
/*Using LVGL with Arduino requires some extra steps:
 *Be sure to read the docs here: https://docs.lvgl.io/master/get-started/platforms/arduino.html  */


#include "my_gui.h"
#include "my_hx711.h"
#include "motor.h"

/*void demo_gif()
{
  LV_IMG_DECLARE(line_dog);
  lv_obj_t * screen = lv_scr_act();

  lv_obj_t * gif = lv_gif_create(screen);

  
  lv_gif_set_src(gif,&line_dog);

  lv_obj_align(gif,LV_ALIGN_CENTER,0,0);

}*/


void setup()
{   
  Serial.begin(115200);

  my_gui_init();  //初始化lvgl,创建my_gui_task任务，优先级为2  
  hx711_init();   //创建my_hx711_task任务，优先级为1
  motor_init();
  delay(50);
}

void loop()
{
  vTaskDelay(5);
}
